class SysImg extends egret.DisplayObjectContainer {
	private ract: any;
	public text: any;
	private am: any;
	private img: any;
	public constructor(ract: any, text: any) {
		super();
		this.ract = ract;
		this.text = text;
		this.addEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage, this);
	}
	private onAddToStage(): void {
		this.img = new eui.Image();
		this.img.source = this.text;
		this.img.width = this.ract;
		this.img.height = this.img.width;
		this.img.y = 10;
		this.height = this.width;
		this.width = this.height;
		this.x = 40;
		this.addChild(this.img);
	}
	public openAm(): void {
			this.img.x = 10000; 
	}

	public closeAm(): void {
			this.img.x = 0;
		
	}
}


